// by Xeno
private ["_vehicle","_position","_enterer"];

_enterer = _this select 2;
If (!(Local _enterer)) exitWith {};

_vehicle = _this select 0;
_position = _this select 1;

if (_position == "driver") then {
	if (_enterer == player) then {
		if ((player GetVariable "d_hud_id") != -1000) then {
			_vehicle removeAction (player GetVariable "d_hud_id");
			player SetVariable ["d_hud_id", -1000];
		};
	};
};